export default function getWarningTips(result) {
	// 温度
	let temperature = result.temperature
	// 天气
	let weather = result.weather
	// 风力
	let windpower = result.windpower

	let resultTips = ''

	// 第一种情况 晴天 
	if (weather === '晴') {
		if (temperature <= 5) {
			resultTips = '晴天,有阳光,但仍需添衣保暖'
		} else if (temperature > 5 && temperature <= 20) {
			resultTips = '晴天,会有一丝寒意,记得保暖'
		} else if (temperature > 20 && temperature <= 26) {
			resultTips = '今天是很舒服的一天,努力工作!!!'
		} else {
			resultTips = '注意防暑降温'
		}
	}
	 else if (weather === '阴' || weather === '多云') {
		if (temperature <= 5) {
			resultTips = `${weather},需添衣保暖,给自己点一杯奶茶吧!!!`
		} else if (temperature > 5 && temperature <= 20) {
			resultTips = `${weather},会有一丝寒意,记得保暖`
		} else if (temperature > 20 && temperature <= 26) {
			resultTips = `今天是很舒服的一天,努力工作!!!`
		}
	} else if (weather.indexOf('霾') != -1) {
		resultTips = '出门记得带口罩,要照顾好自己!!!'
	} else if (weather === '大风') {
		resultTips = '出门时请关好窗门,出行注意安全!'
	} else if (weather.indexOf('雪') != -1) {
		resultTips = '注意保暖,慢速行驶,出行注意安全!'
	} else if (weather.indexOf('雷') != -1) {
		resultTips = '雷雨天气少出行,防雷知识要掌'
	} else if (weather.indexOf('雨') != -1) {
		resultTips = '记得带伞,雨天路滑,出行注意安全'
	}else if (weather.indexOf('雾') != -1) {
		resultTips = '出门记得戴口罩,出行注意安全'
	}
	
	
	return resultTips;
};
